while True:
    username = input("请输入您的用户名:")
    if username == ' ':
        continue
    else:
        with open("guess.txt","a+",encoding="utf-8") as f :
            f.write(f"您登入用户名为:{username}\n")
        break
